package com.example.messagewall.Mapper;

import com.example.messagewall.Model.MessageInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MessageInfoMapper {
    @Select("select * from message_info")
    List<MessageInfo> selectAll();
    @Insert("insert into message_info (`from`,`to`,message) values(#{from},#{to},#{message})")
    Integer insert1( MessageInfo messageInfo);
}
